package kr.hkit.powerjava.chapter11.work;

public class Book {
	private String subject;
	private int pageCounter;
	private String writer;

	public Book() {	}

	public Book(String subject, int pageCounter, String writer) {
		this.subject = subject;
		this.pageCounter = pageCounter;
		this.writer = writer;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public int getPageCounter() {
		return pageCounter;
	}

	public void setPageCounter(int pageCounter) {
		this.pageCounter = pageCounter;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	@Override
	public String toString() {
		return "Book [제목 = " + subject + ", 페이지 수 = " + pageCounter + ", 저자 = "
				+ writer + "]";
	}

}
